package com.homework.HomeAcount.entity;

import java.io.Serializable;
import java.util.List;

public class TreeNode implements Serializable {

	private static final long serialVersionUID = 6002682260720829553L;
	
	private String id;
	
	private String name;
	
	private String pId;
	
	private Boolean isParent;
	
	private Boolean open;
	
	private List<? extends TreeNode> children;
	
	public TreeNode() {
		
	}
	
	public TreeNode(String id,String name) {
		this.id = id;
		this.name = name;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public Boolean getIsParent() {
		return isParent;
	}

	public void setIsParent(Boolean isParent) {
		this.isParent = isParent;
	}
	
	public Boolean getOpen() {
		return open;
	}

	public void setOpen(Boolean open) {
		this.open = open;
	}

	public List<? extends TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<? extends TreeNode> children) {
		this.children = children;
	}
}
